import React, { Component } from 'react';
import styles from "./style.less";

/**
 * @Jimmery 
 * @description sku详情页面
 * @date 2018/08/27
 */
const data = [
   {
       key: 1,
       title: '商品名称',
       content: '这个还是挺好的'
   },
   {
        key: 1,
        title: '商品名称',
        content: '这个还是挺好的'
    }  
  ];
class shopInfo extends Component {

    constructor(props) {
        super(props);
    }

    render() {
        const { location } = this.props;
        const params = location.params;
        return (
            <div className={styles.listMsg}>
                {
                  data.map(function(item, index) {
                    return (
                        <div className={styles.listInfo} key={index}>
                            <div className={styles.listTitle}>{item.title}</div>
                            <div className={styles.listContent}>{item.content}</div>
                        </div>
                    )
                  })  
                }
            </div>
        );
    }

}

export default shopInfo;